TestEventService.publishEvent   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
1
import { Inject, Injectable } from '@nestjs/common';
2
import { IEventBus } from '@nestjs/cqrs';
3
import { TRANSPORT_EVENT_BUS_SERVICE } from '../../../../src/constants/transport.event-bus.constants';
4
5
@Injectable()
6
export class TestEventService {
7
    constructor(
8
        @Inject(TRANSPORT_EVENT_BUS_SERVICE) private readonly eventBus: IEventBus
9
    ) {
10
        // TODO
11
    }
12
13
    publishEvent(event: any) {
14
        this.eventBus.publish(event);
15
    }
16
}
17